package com.nnnu.orange.pojo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 支付记录表，记录用户支付的罚款信息
 * </p>
 *
 * @author zk
 * @since 2024-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("payments")
@ApiModel(value="Payments对象", description="支付记录表，记录用户支付的罚款信息")
public class Payments implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键 ID，自增字段，用于唯一标识每一条记录")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "借阅记录 ID，用于关联借阅记录表（外键）")
    private Integer borrowingId;

    @ApiModelProperty(value = "用户 ID，用于关联用户表（外键）")
    private Integer userId;

    @ApiModelProperty(value = "罚款金额，数据类型为 DECIMAL，支持最多10位数字，其中2位小数")
    private BigDecimal fineAmount;

    @ApiModelProperty(value = "支付状态，0 为未支付，1 为已支付，默认值为 0")
    private Integer status;

    @ApiModelProperty(value = "支付时间，若未支付则为 NULL")
    private LocalDateTime paidDate;


}
